Fixed click on table logic.