Query shows evince is my default handler.

But, double clicking a pdf file opens ImageMagick. A pdf file's Properties shows ImageMagick as the default handler.

Why is this happening ?
After answering the why, also tell me how to solve it using the terminal. I am very fond of using terminal. I tried sudo xdg-mime default evince.desktop application/pdf, nothing changed, even after logging out and back in.