fix a file