Fixes a bug where POST to / returned an error