null segment fix