fix ftdetect