bug fixed for mirroring