Fix input files qvalues and model