Fix formatting bug in controller