Fixes assert type of window length check.