Use right value in prog1 check