Fixing wrong variable being used for code options