fix minor bugs in mab.lua