fixed regression in save to ODP code