Fixed incorrect matrix copy commands

Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>