fix isSupported check