fix for data interval splitting (thanks DanB)