Fix remote mounting functions.