medit bug fix