Fix restoreSelection from actions