fixed a bug in get_all_times.m