fix searching for caps