Fixes deprecated call to xxxAttributeAndModes in examples