small fix in collect