fix regression find_hat (w/Alan Aguiar)