I just resolved a similar problem. In my case, the problem was with the right hand pulley for the X-axis drive belt. It was binding sometimes (not all the time). So it would work and at random times it would bind and throw off the X-axis. I backed the lock nut off a half a turn and put some good oil on it and everything is working well!
