fix loading invalid peer from db