Fix variable use before init