fix mirroring switch