fix patch (remove sm stuff)