Small fixes for find_prefix_all/2.