fixing moving animation