fix the getNoEndThunderbrdFlag() bug