Fix enumerate extension to complex