fixing get_hint