fix resource quality bugs