fix bug with empty string