* fixed a bug in matrix conversion routine (exact version)