Fixed cancel bug in save dialog