fix code that allows refresh of a collection