Fix ldetect remove