fixed local client bug