fix memory mirroring bug