missing data bug fixed