fix some bugs in collect model