Applied fix from https://github.com/Adyax/docman/issues/1