Corrected animation bug