Fix missing var declaration