Fixed sprite spawning bug.