fixed restoreTransaction process and events