Fix for ref/cite replacement edits