Fixed occasional issue with time.txt file