trying to fix node spawn bug