Fix controller template