Fix invalid serverOrClient param