fix another bug in resource view