fixes an issue highlighting a comment with two targets where the class is added and removed immediatly