fixed bug in merging imp chunks