fixed some error in server