fixed fatal bug in breaking chunk into pieces