Fix to clear_link to remove role id and department id