Small fixes to get_metadata()