Fixes issue with plotting by intervals and by days