Fix mountSmServer function