we want to prefer *.jpi over *.hpi, but the code was other way around