Correctly compute the content length
minor