getting history period bugfix