fix bug in checking control client null