fixed content-length problem