Corected file spliting