Fixed a sprite offset bug.