How to solve Duplicate Mapping errors