fixes a chunk generation issue.