remoteResource bug fix