fixed error in mirroring