fixed lookups of dataset and target dicts