Fix problems with grammar loads stopping detection