fix "error when first load" in mab.lua, now it becomes a bit complicated