fixed flocking to work with chunkedmap