fix swtype