Fix the code that adds missing configurations - was possible to get dupes