fixed error in server file