fix several bugs in the mtbl_fill option