fixed exception with empty string