workaround bug involving enums