You need to indent this, it's hard to explain how spawn works but you need to put it with the rest of the spawn code by indenting it.