Update and fixe bug for AppsGate client API