fix double comment check bug

fixed bug for double comments post check (was sometimes giving false positive)