fixed chunk->dirty bug, not sure how