Workaround for bug in pysam.