Fixed: Undefined var in repo file controller