fix field searching && remove a memset call