fixed usage of chunked map in flocking code