Fixed error to avoid reloading of already loaded files.