fix open-port issue
  Pavel Pachkovskij 2013-07-31 fix open-port issue