Fixes side effects of next operation