Corrections to window procedure.