Fixed timelapse segfault issue