fixed approve issue caused by optimizing with with statements