Fix bug of calendar sniff