fixing the client exception