Fixed bug with FileMatrix