Fixed more edge cases around rates near beginning of windows.