Fix paths, routing and misc. stuffs.