fixed missing var in newcontroller