fix static file handling