FileRead::getMatInfo, fixed if-else block