Changes to make permalink demo work