Fixed bug in shared matrix copying