Fixed select/unselect all

Closes #1390