fix "options is not defined"