Fix predictable ports problem