fix handling of flags in the OSC input handler