Fix inverted panel select logic. [1534]