Fixed bug in port export