Fixed HTDocs loading bugs.