fixing oldMid