Fix chunking procedure

This was a result of a sloppy patch procedure.