dirty tmp fix (for rtfd)