fix issue 10552 and 10553 - enums and access specifiers