Fixed Collection issue. Put it in generation not in toHTML.. stupid mistake