Fixed an error with the interval class.