#312 fix corner case for duplicate guides