Bugfix in log file retrieval