fixing the lifting of enums