fixed invalid client reference