bugfix in static_pages_controller