fixed bug in folder comparison, leading to unnecessary full collection fetches