Fixed crashing

We're gonna have to add a garbage collect method for the frame.