Fix getsupportedmodes