fixed a missing var