Fixed bug that prevented auto port opening