fix attribute search