fix loadOptions