fixed issue with missing data