Fix for comands remove and replace-doc