fixed a condition issue.