fix spawn localization