Fix bugs

fix the resourceURI and high CPU problem