fix RTD function calls that were incorrect