Fixes sprite offset issue