Fix some formatting as well as </spawn> error