fixes double-definition of port