Fix bug where use still existed in dead code