Fixed  not defined bug on collection index controller