Fixed the problem with the returning METIS with error