fix animation bug with fractional coordinates