a temporary fix when function start_ts is undiefined.