fixing documents issues