fix deprecated getRemote()

fix deprecated getRemote()