Fix another bug when switching collection path

This was causing problems when changing collection path