fixed imaginary bug