Recitfy the logical error