fix to stop crash on non-exist collections