Fixed connection to create opened documents