fix bugs in matmult_p.c and myshell.c