Fixed bug where nan's hung out at the first and last entries of a series.