Fixed save dialog bug