The x_dir_pin is correct. It happens once in a while then it stops. I don't know what to troubleshoot.