fix for Manifest file preparation code