fix enum printer for small enumerations