fixes ftdetect