Fixed bug for unselecting table rows