bug with no flag fixed