fixed bug with position interpolation