Correct dent in different file formats