Fixed a bug in plot.mat (util.R)