correct a sprite dimensions bug