fix error when no client data