Fix BWTSMem.scala return