fix port var