bug fix for spawn window button