Make sure we take offset into account for caps and return value. Also,
clear caps before searching.