fix a bug in _findandrecord() method