Fixed memory problem with yale ==