Fix NPE on setspawn