Fix opening staged renamed files