Fix invalid mappings.