fixed some bugs in web_console