bug fix for linked notebooks case