Fixed multiple spawn issue.