Error fixed in boxspawning