changed 'nil' to nil in StaticPagesController