1.5.1 - fix race condition in port assignment