fix document resoucing