While condition fixed in all get_uint functions