fix for when mappings are corrupt