Fixed invalid locking order when activating visualization.