Fix #2 , lock status lost after edit the event.