Fix port setting