fix var usage