Fixing Q model in input file generation