Fix bugs in get_ym_token task