fix get_handle error