Fixed compile errors following addition of VisibleScope.