Fixed content-length bug