fixed div/0 error in mprof