fixed html patching for adding manifest ref