Fix hovering.

Also fixed various other glitches and bugs.