Fixed bug in save opt