fix bug in calendar widged