fix issue #3 : Undefined variable: localOptions