Fixed numerous problems in hconsole.