Last interval recalculate bug