fixed build for rst files