fixed minor issue with timing.