Fix peer registration