fix missing parts when separating files