Fix "invalid client" error