fix port variables type