AttributeError of Filter offsetCurve

def filter(name):
        for filter in Glyphs.filters:
                if filter.__class__.__name__ == name:
                        return filter
offsetCurveFilter = filter('GlyphsFilterOffsetCurve')
mylayer = Glyphs.font.glyphs["X011"].layers[0]
offsetCurveFilter.filter(mylayer, False, {"OffsetCurve;15;10;0;0.5;"})

This script report the AttributeError: ‘GSMenu’ object has no attribute ‘filterInstances’
Please help check the reason.
My Glyphs version is 2.6.5(1325)

Fixed it. Thanks.

Need I download the newest version of Glyphs and install it again?

I need to finish an update. Will take some time. Maybe later today, or tomorrow. Then you update the app.

After I updated to version 1329, but now report another error as below:
AttributeError: ‘GlyphsFilterOffsetCurve’ object has no attribute 'filter’