fix bug in enemy spawn script