Fix study saving of operations and position