Fix FlipSpriteBasedOnDirection