Fixed ftdetect