fixed 'select all' issues