fix save dialog bug