fixing some log call for complex numbers