fix dangling