Bug fix: don't try to add anything if nothing is selected