Bug fixes for editing links