fixed an issue with local files