ViewerInstance: fix crash at launch