fixed bug of calendar