fix bug display error message in server