Docs script fixed