fix parsing same options many times