fixed undesired behaviour if no id is selected (see #20)