fix var initialization