fix a possible bug for antipatterns without markers