Fixed a bug when loading bam paths