fixed glitch in animation