bug fixes to anchor links, etc