Fixed bug where when a date was editted it would try and access a deleted C++ Object