fix magic number for port