matrix reader: Fix bug which incorrectly read in matrix material.