Fixing weiping bug #24 in main calendar view.