correct flag-setting behavior