We found the solution, it was actually fairly tricky. When converting tweet_ids to json, it was rounding the last digits which corrupted them. We recommend to convert tweet_ids to strings before converting them to json data (in order to use them inside a form).