fixed bug in SaveDialog