Fixed minor problem in history module