Configure Automapper and remove bug in it