fixed mirroring bug