fixing duplicate stops check