Fix variable condition