Fix insertId is not always returned correctly in the callback on iOS devices.