fix a bug in Calender,now it can use right and left arrows