fix unload document