Fix windowing algorithm registers