Prevented overriding the file with itself.