Fixes a bug (request to /index returned an HTTP 500)