Fix: test if clickedRow != -1, not > 0