fix a timing issue