edit crypto. Add check error in recv query.