Fixed some race conditions in ViewerGL