Fixed sprite animation problem