fixing doc state