BUG: normalize window weights