fixed race to set the time