fix issues for rtfd