Fixed the generation of code in a single file