Fixed possible timing error.