fixing the code that generates the manifest file