fixed a timing issue