fix bug detection.isSupported