Fixed issue with empty history collection.