fix segfault and gere client is waiting for defy