Fix resource cache dirty.