fixed bug of canvas mirrored mode