fixed crash when anonymous enums encountered outside global space