It appears that you added the real factor and the coefficient of i. Instead, multiply the real factor by the coefficient of i.