bug fix for when adding an option