fixed error in server