Problem mapping xbox one controller

Hi, I have a problem with my xbox one controller and retroarch 1.2.2. each time I press B, it close retroarch. i have remap buttons without any success. is there a bug or a specific setting for this controller? with the previous version 1.0.0.2 I could remap all buttons without any problem thank you for your help regards