fix nhit and speed up detector by removing transition