Kathy,
I am assuming you are expecting the Defect that is tied to the Story to be closed automatically when the Story is Accepted? This does not happen automatically and the Defects will need to be moved to a Closed State manually once whatever the criteria your team uses to determine Defects can be Closed are met.
Or are you asking a process question?
Michael