fix file length