hex convertor bug fix