fix missing data bug