Fixed jumping tooltips when switching modes.
Fixed tooltip showing in research mode when nothing is selected.
Hopefully fixed lua error.