Fix server bugs in config and spawner