Fixed a bug in DlgScenes