Solves the issue for scripting console