fixbugs from removedoc api