fixed bug in loopcollections controller