Fix for saving of opened trial

Code review : Chika Arevalo