MT#5255 Fix boolean handling and HFH validation