SpriteBatch rendering side effects fix