fixed reference error in client functions lib