Fixed history module bug