fixed motion simulation at 0,0 problem