Fix selectable=false objects getting incorrectly selected. Closes #880