Techstyle thanks for the reaction.
It's not happening when first creating the device, everything works fine, it learns the codes, etc..
Now i have created a template, saved it, media wizard it, etc... but i forgot some IR codes i needed. So when i go through "device templates" to change/add ir codes it will give me the above behaviour. I guess i can just make a new template again, but that's not very "clean" imo plus it looks like a bug.