Avoid editing the same file twice