fix bug in unloading docs