fixed missing var and mistyped import