Error corretons on importFromFile function