fixed sendfile issue