This is caused by lag.
Client side prediction algorithms should help to solve this problem when they are implemented in the future. However, you can only do so much if you experience lag of over 400.
If you would like to know your ping, it is displayed on the top of the game window, just to the right of the
|