fix when timestamp in redis has null value