fix detecting --