Fix bug due to Port declaration