fixed a bug with routes for the root directory