fixed missing var