fix erroneous logic tags