Fixed a bug with spritesortmode