cleanup inferior mode.