ast: fixed hang when checking beid
Merge branch 'master' into gui2
GUI2: Fixed Cppcheck warnings