Specified type in collect(), fixed build