Fix bug on deleting worksheet.

Comes from incomplete refactoring of configuration information.