fix the options bug