fixed LUA option restore for trig format