fix port writing for ee-6.1.x