fixed spritebatch issues