remove unrecognised flag