Mr brian code to populate the blog is wrong. see the good version: http://pastebin.com/fe375d1