fix bug browser action does not work if selection is empty