fixed student results database dying when the window is resized