File export works, errors in file import