Fix for call to undefined method ::getRemote()

Fix for call to undefined method ::getRemote()