handle empty keys (tags)