Fixed patcher element selection logic in the gui.