Fixed dangling reference