fix: restore twice condition