Fixed missing argument to getSelectedId().