Fixed some variables not being reset on spawn.