fixed bug in missingData