fixed peer crash