Fixed ctx.opt setting