Typo where variable was overwritten and the time was wrong