Fix FileDiff.apply method