Fix namespace bug in ControllerCore template