fixbugs from removedocfromchannel api