ResourceManager refresh bug fix.