Fix port in use problem