Fix a few backend client bugs