A couple of bug fixes to the burndown code

Just a couple of bugfixes I needed to make to the awesome burndown stuff you've done. Would be great if you were able to pull them.