fix empty string execption