fix logical fail