Fixes Select All button functionality