fix processBlock bug and restart request