fixed error in function that deals with dataset of multiple frequencies and one time point