Fix binary partition but in some cases segmentation fault. I need to fix the bitmax dispose.