Fix obsolete function name