Fix ModuleDeploymentWriter method