Remove nil error by updating StaticPagesController