fix enum by using the alias trick