Fix broken config sanitisation