fix wrong response after static file response