Fixed substitutions in documentation