Working on animation bug