fixed a bug (dialog didn't close after saving)