Fixed ldn to prevent repeated recs on restart