recorded track start msec earlier than it was played.

Hello, I have a little problem. I record a guitar track played in time but when I play it back the track starts just msec earlier than it was played. For that I have to move the track just a little bit forward and than it is the same as it was played. What causes this?
please help.