fixed error in guild prep for loop