Fixed incorrect scope names that are created by 'attr_enum'