Fix dangling reference.