bugfixes for viewer mutexes