Fix for doc code duplication