Fixed bug in OS X of save dialog poping in and out.