fixed a bug in the input files