Added better error when config has duplicates