Fix bug where only part of past data is requested