fix delete in file.lgt (Thanks to Paulo Moura for patch)