fix selectAll toggle issue