Fix bug with viewing Last Month report. Closes #1765