fixed bug about splitting file