Fixed complex number handling