fixed destroy function, fixed timestamp problem in search time range.