fix bug when test mirror