server: ref fix by @nicokaiser