Fixed an issue with importing sparse matrices