fixed a bug in generating the files