[FIX] base, ir_sequence: fixed errors made during previous refactoring