fixed error with heading and linked heading in archives etc