fix static file serve bugs