Fixing small bug with sendfile