Fixed small bug in resource check/report