fix minor bug with default flag