fixed a bug when locate record into several files