Various fixes, mostly mouse/vision related.