Fix race in badge code.
Fix badge display for new posts.