fix bug : modal isn't closed when saving