fix a case when remote_id is integer