Fixes mount/unmount errors.