Make chunks work properly. Currently there is a problem that all chunks will use the same chain.