handle empty string in lookup_field