Fix bugs in console

Hi, 
These 2 commits should fix your problem. I've intentionally just commented out the previous code. 

Have fun!

Cheers,
Fayi