Fix view errors on admin and home pages. Fixes #33