fix crashing bug on undo of track delete with notes present