fixed bug with updating docs in index