Fix ftdetect behavior