Solves the issue for scripting console

Solves issue #151