Fixed 'select all' bug