Revert "Revert "fix the some bug""

This reverts commit 2ec26165b1c8c107ff3218e521c8d31d6a9036be.

Conflicts:

	static/js/docs.js