Fixed concurrency problem in HiveHistory.java