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