A minor improvement

Should fix memory leaks and setGeometry() errors during runtime