Fixed missing for loop in server.