Fix some request chunking bugs