fix how missing values are handled in dictionaries