History bug fixes.