Several fixes in HaloPlex pipeline