Make sure to set flags to 0 on no option