fix some bug in segment and mklfs