Fixed a bug caused by changing return values of GenBCIndexBAM