Fix warnings and duplicate inside configuration