fixed mirror bug