fix for console detection
Merge branch 'release/1.5.2'