Fixed ridiculous memory leak