fix incorrect function reference