Revert "Fixed non-working matrix-reading code"

This reverts commit aab35a0c40baf5a214d983f3f84633bf77dddda3.