updated prestim and poststim values to prevent NaN in frequency data.