fix collections inputs errors