fixed a bug in sparse matrix

it should put the default parameters on the last...