Remove dangling reference