fixed chunk file problem