fix document references