TimeLaps fixing code