Fixed memory leak resulting fro mtransitions