fix floating ref-taking function name