fix for port issue mentioned in #498