fixed a major in catalogue that protocol might be duplicated twice with some queries