Fix the bug about name error in collections