fix bug display error message in server (null check EVERYTHING OMG)