fixed port binding problem of mock device