fixed bug with intervals;