Fix a bug to get collections