Fixed error messages given by ImportFromFile()