Fixed some unused variables in examples