fix filename self-references