mirror bug fix