fix missing data['error']