fixed flag processing