fix potential errors in NTP caused by running in main thread