Thanks for letting me know about that bug. It makes sense that a bug could've crept in there because I edited that code... Hopefully it won't happen too often before I fix it.
The badges are catching up right now. They were originally going to be implemented early on, so many of the scores have been tracked from the beta versions, and long-time players have earned the badges already. So as you do things it awards you for stats you already reached. So for example if you have built 260 campfires like I have, the first campfire you build it will give you the 50 campfire badge, the second you build will give you the 200 campfire badge. Other stats have not been tracked before and you will earn their stats anew.