fix invalid flag behavior