Fixed a vb6 logic issue.