Fixed files being logged twice