fix calendar edit bug