Fixing problem with chunk size allocation.