error window correction