bug fix to make bwa workflow run properly