fix 'no openGL context' and uninitialized bounding box