Fix missing initialization of var