Oxygen is MAGNETIC?!

So if after 1043k point the iron looses its magnetic field proprieties, and the core of our planet is mostly iron and suppose to be the reason of our magnetic field... how is possible our planet have an magnetic field?