fix calendar add event bug