Memory leak fixes. Butterfly puzzle fixes.