Fixed issue 'Server crashes with spy'