Add fix to make trail.m work with added dests param