HI was not assigning a egAlgo properly causing crashes; fixed