mztab bug fixing