Fixed sprite sorting bug