Fix content-length bug