fix to reference of struct variable in craft(optstruct) method