Fix intervals based on next lecture