Fixed sprite offset bug