Fixed error in code entries controller.