Minor code fix in HW_Registers