fixed a bug in pdmat