While it does not address your current problem, this demonstrates why it's worth investing an hour to assign your chart of accounts to Account Groups and turning on the validation in the Company Profile.
Once this is done, you never have to worry about this happening again.
_________________________
Andrew Bates