fixed error extension file bug in save/open dialog