fixes mappings for diff