fix guessing variable condition