Fix when you close the options or info window and then open it again causing a crash