fix timing issue.