Solves the issue for scripting console
Merge pull request #196 from ChanKaur/chan

Solves the issue for scripting console