Sprite not drawn error fixed