fixed bug while adding new link