Fixed: Mac dialog never closes