fixed issue where string is null