fixed bug : server crashes when no text is entered