Fix opening file chain.