fixed an issue showing previous week history