Fixed bug in insert_gcm_id.