fix for saving options