Changed reference in controller to fix ip seg fault.