fixed minor spawn bug