Fix for garbage chunk data. This fixes an issue, not sure if it's *the* issue.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>