Fix editing errors and reference links