fix exception whith empty strings