fixed bug about saving options