Bug fix for simplenet and server

There was a typo in server and a mistake in SimpleNet. This patch fixes
it.