Corrected controller definition