fixed the bug reported by Don for the dataset with 2 time dimensions.