fixing rst substitutions