Found a bug in collect.