Fixes "Select all" functionality