Fixed dangling variable reference.