Fixed the last minimize -> maximize memory leak.