fixed the bug in clear window...
now added a default date to the effective date