fix for port setting