fixed error in loopcollection model