Fix bug where isSupported returned always false