Fix resource collector