fix action buttons don't restore

Issue #490

Fix restore action buttons not working when editing one line at a time.