Bugfix, switching controlling client should not crash anymore.

Hopefully I fixed the bugs now....