fix error with links with no name, and with bulk import stylesheets