midterm fixes