fix var init compile warning