Fix the bug about the name error in collections