Fixing problem with incorrect error on file import