fixes bam log file