Fixed a bug where the selection was removed when local actions was updated