Nasty hack to get add_collection() working properly.