Fixed index route sending output to echo instead of returning it