Fixed sprite flipping glitch.