Fixed buildLogs