Fixes #318, this forces the port to be an int