Fix variable checking.