fixing a content-length issue