fixing missing data bugs